﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="ContentEdit.aspx.cs" Inherits="ContentEdit" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Loading...
     <CKEditor:CKEditorControl   
        HtmlEncodeOutput="false" ID="elm1" 
        FilebrowserBrowseUrl="FileManager/Default.aspx"  runat="server"  
        ></CKEditor:CKEditorControl>
    </div>
    <script type="text/javascript">
        function ExecuteCommand(commandName) {
            // Get the editor instance that we want to interact with.
            var oEditor = CKEDITOR.instances.elm1;

            // Check the active editing mode.
            if (oEditor.mode == 'wysiwyg') {
                // Execute the command.
                // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#execCommand
                oEditor.execCommand(commandName);
            }
            else
                alert('You must be in WYSIWYG mode!');
        }
        
    </script>
    </form>
</body>
</html>
